<link href="<?php echo DOMAIN; ?>/css/style.css" rel="stylesheet" type="text/css" />
<!-- CSS - Styles -->
<link href="<?php echo DOMAIN; ?>/css/base.css" rel="stylesheet" type="text/css" />
<link href="<?php echo DOMAIN; ?>/css/forms.css" rel="stylesheet" type="text/css" />

<style type="text/css" title="currentStyle">
	@import "<?php echo DOMAIN ?>/js/DataTables-1.9.0/css/demo_page.css";
	@import "<?php echo DOMAIN ?>/js/DataTables-1.9.0/css/demo_table.css";
</style>
<script type="text/javascript" language="javascript" src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.dataTables.js"></script>
<script src="<?php echo DOMAIN ?>/js/DataTables-1.9.0/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
			
	$(document).ready( function () {
                	$('#example').dataTable({
                    				"bJQueryUI": true,
									"aLengthMenu": [ 50, 100 ],
									"bProcessing": true,
                                    "iDisplayLength": 50,
                                     "_iDisplayLength": 50,
                                     "_iDisplayEnd": 50,
                    				"sPaginationType": "full_numbers",
                    		//		"sAjaxSource": "/doan/source/public/index.php/subjects/test-ajax",
                                    "aaSorting": [[0,"desc"]]})
                                    .columnFilter({
				                    sPlaceHolder: "head:before",
                   					aoColumns: [ null,
                               		{ type: "text",width:"100"},
                                    { type: "text",width:"100" },
                                    null,
                                    { type: "text",width:"100" },
                                  
                                    ]
                						});	
        	 /* Add a click handler to the rows - this could be used as a callback */
									 /* Add a click handler to the rows - this could be used as a callback */
					 
		});
</script>

<style>
	content table tr td{
		background:#e2e2e2;
	}
	#example_info{
		display: none;
	}
	#example_paginate{
		margin-top: 10px;
	}
	#example_paginate a{
		padding-left: 8px;
	}
	#example_length{
		display: none;
	}
	#example_filter{
		display: none;
	}
</style>

<?php 
	$list = $this->list;
	$e_id = $list[0]["e_id"];
	$sj_id = $this->sj_id;
//	Zend_Debug::dump($list);
?>
 <div id="content">
     <section class="grid_9" id="dashtabs" style="width:98%;min-height:400px;">
        <div class="box-header">
        	<p style="float:right;" ><a style="color:black" href="<?php echo DOMAIN_INDEX ?>/subjects/score-file?e_id=<?php echo $e_id; ?>&sj_id=<?php echo $sj_id ?>">Chấm điểm</a></p>
        	Danh sách bài nộp môn <?php echo $this->name; ?>
            
        </div>
        <div id="dashtabs-pages" class="box-content no-padding" >
          <table id="example" class="table no-border">
            <thead>
				<tr>
					<th >STT</th>
					<th > Sinh viên</th>
					<th > Tiêu đề</th>
					
					<th>File đính kèm</th>
					<th>Thời gian</th>
					
				</tr>
			</thead>
			<tbody>
			<?php 
			//	$list = $this->list;
				
				$i=0;
			//	Zend_Debug::dump($list);die;
				foreach ($list as $key => $value) {
					?>
					<tr>
						<td><?php echo $i ?></td>
						<td><?php echo $value["name_s"] ?></td>
						<td><?php echo $value["title"] ?></td>
						
						<td><a href="<?php echo DOMAIN.$value["link"] ?>">File đính kèm</a></td>
						<td><?php echo $value["time"] ?></td>
						
					</tr>
					<?php 
					$i++;
				}
			?>	
			</tbody>
          </table>
        </div>
        
    </section>   	
            
 </div> <!-- END of content -->